/*  1:   */ package org.jetbrains.generate.tostring;
/*  2:   */ 
/*  3:   */

import com.intellij.openapi.components.PersistentStateComponent;
import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.components.State;
import org.jetbrains.generate.tostring.config.Config;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */ 
/*  8:   */ @State(name="ToStringSettings", storages={@com.intellij.openapi.components.Storage(file="$APP_CONFIG$/other.xml")})
/*  9:   */ public class GenerateToStringContext
/* 10:   */   implements PersistentStateComponent<Config>
/* 11:   */ {
/* 12:   */   public static GenerateToStringContext getInstance()
/* 13:   */   {
/* 14:33 */     return (GenerateToStringContext)ServiceManager.getService(GenerateToStringContext.class);
/* 15:   */   }
/* 16:   */   
/* 17:36 */   private Config a = new Config();
/* 18:   */   
/* 19:   */   public static Config getConfig()
/* 20:   */   {
/* 21:39 */     return getInstance().a;
/* 22:   */   }
/* 23:   */   
/* 24:   */   public static void setConfig(Config paramConfig)
/* 25:   */   {
/* 26:43 */     getInstance().a = paramConfig;
/* 27:   */   }
/* 28:   */   
/* 29:   */   public Config getState()
/* 30:   */   {
/* 31:47 */     return this.a;
/* 32:   */   }
/* 33:   */   
/* 34:   */   public void loadState(Config paramConfig)
/* 35:   */   {
/* 36:51 */     this.a = paramConfig;
/* 37:   */   }
/* 38:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.generate.tostring.GenerateToStringContext

 * JD-Core Version:    0.7.0.1

 */